<div align="center">
	<h2 style="text-align:left">{t}Country Language Setting{/t}</h2>
	<div id="update_lang_response" class="ajaxResponse fade" style="text-align:left;display:none"></div>
	<div style="text-align:left; padding-top:10px; margin-left:20px">
		<form name="option_country_lang" id="option_country_lang" method="post" 
				action="?mod={$smarty.get.mod}"
				onsubmit="return saveOption('option_country_lang', 'update_lang_response');">
				<input id="act" type="hidden" name="act" value="updatelang" />
				<label for="country">{t}Country:{/t}</label>
				<select name="country" class="select" id="country" 
				onchange="onChangeCountry(this.value)">
					<option value="-1">{t} --- New --- {/t}</option>
					{foreach from=$COUNTRIES item=item}
						<option value="{$item->country_code}">{$item->country_name}</option>
					{/foreach}
				</select>
				<div class="new_country_panel" id="new_panel">
					<table>
						<tr>
						  <td><label for="country_code">{t}Country Code:{/t}</label></td>
						  <td><input id="country_code" name="country_code" type="text" maxlength="5"></input>*</td>
						</tr>
						<tr>
						  <td><label for="country_name">{t}Country Name:{/t}</label></td>
						  <td><input id="country_name" name="country_name" type="text" maxlength="255"></input>*</td>
						</tr>
					</table>
				</div>
				<div id="lang_place_holder" style="text-align:left;width:100%;padding-top:10px">
					{* Plase holder for ajax response *}
					{include file="options_lang_list.tpl"}
				</div>
				<p id="btn_add_panel" class="submit" align = "right" style="display:block">
					<input type="button" name="button" value="{t}Add country{/t}" onclick="addCountry()"/>
				</p>
				<p id="btn_update_panel" class="submit" align = "right" style="display:none">
					<input type="submit" name="button" value="{t}Save setting{/t}" onclick="$('act').value='updatelang'"/>
					<input type="button" name="button" value="{t}Delete selected country{/t}" 
							onclick="deleteCountry(option_country_lang.country)" />
				</p>
		</form>
	</div>			
</div>
